% Script to open GIF model

% Open the model
if ~exist('TestPrj','var')
TestPrj = GIFproject;
TestPrj.setName('Testing GIF model in gifview3D');
TestMod = GIFmodel.importGIFMeshModelFiles(TestPrj,'HengLargeNrcells.msh','UBCHengLargeNRcells.con','S/m','TestMod');



MeshReg = RegMesh;
MeshReg.hx = TestMod.mesh.getdx;
MeshReg.hy = TestMod.mesh.getdy;
MeshReg.hz = TestMod.mesh.getdz;
MeshReg.x0 = TestMod.mesh.getx0;
MeshReg.y0 = TestMod.mesh.gety0;
MeshReg.z0 = TestMod.mesh.getz0;
end
tic;
GVc = GIFviewClass(TestMod);
toc;

set(GVc.figureH,'Position',[169   324   560   420]);